package telemetry

import (
	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/collectors"
)

var (
	defaultRegistry = prometheus.NewRegistry()
)

func init() {
	defaultRegistry.MustRegister(
		collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
		collectors.NewGoCollector(),
		collectors.NewBuildInfoCollector(),
	)
}

func (o *Telemetry) Register(metrice prometheus.Collector) {
	o.Metrics.Register(metrice)
}
